import request from '@/utils/request'
export function reservationAll(data,name,username) {
 return request({
  url: '/system/wine-reservation/list',
  method: 'get',
  params:{...data,name,username}
 })
}
export function add(data) {
 return request({
  url: '/system/wine-reservation/add',
  method: 'post',
  data
 })
}
export function edit(data) {
 return request({
  url: '/system/wine-reservation/update',
  method: 'post',
  data
 })
}
export function WineByKey(id) {
 return request({
   url: '/system/wine-reservation/WineByKey',
   method: 'get',
   params:{id}
 })
}

export function deleteid(reservationId){
 return request({
  url:'/system/wine-reservation/delete',
  method:'post',
  params:{reservationId}
 })
}
export function approve(id) {
  return request({
    url: '/system/wine-reservation/approve',
    method: 'post',
    params:{id}
  })
 }
 export function reject(id) {
  return request({
    url: '/system/wine-reservation/reject',
    method: 'post',
    params:{id}
  })
 }
 export function getPassProbability() {
  return request({
    url: '/system/wine-reservation/getPassProbability',
    method:'get'
   
  })
 }
 export function setPassProbability(passProbability) {
  return request({
    url: '/system/wine-reservation/setPassProbability',
    method: 'post',
    data:{...passProbability}
  })
 }